import smtplib
import sys




FROMADDR = "mape2emonitoring_SVC_BE@nokia.com"
#if level == 'ResultNotFound':
#	TOADDRS  = ['ext-duan.ken@nokia.com']
#else:
#	TOADDRS  = ['ext-duan.ken@nokia.com']
TOADDRS  = ['ext-duan.ken@nokia.com']	
#TOADDRS  = ['ext-duan.ken@nokia.com','weitz.zhang@nokia.com']		
SUBJECT  = "Eexcel Modify Check Initiate" 

msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n"
       % (FROMADDR, ";".join(TOADDRS), SUBJECT) )
msg += "Dear fellas\n"
msg += "Modify check tool is launched success\n"
msg += "\n\n\n\nBRs\n"
msg += "QA Automation\n"

server = smtplib.SMTP('smtp.nokia.com', 25)
server.set_debuglevel(0)
server.ehlo()
##server.starttls()
##server.login(LOGIN, PASSWORD)
server.sendmail(FROMADDR, TOADDRS, msg)
server.quit()
